/*
 * @Description: 其他存储相关方法
 * @Author: Rfan
 * @Date: 2022-04-26 15:24:27
 * @LastEditTime: 2023-02-26 12:02:39
 */

const unitKey = 'unitId';

export function getUnitId() {
  const id = localStorage.getItem(unitKey);
  return id ? parseInt(id, 10) : id;
}

export function setUnitId(id) {
  return localStorage.setItem(unitKey, id);
}

export function removeUnitId() {
  return localStorage.removeItem(unitKey);
}
